﻿using Ledict.ConditionExtract.DAL;
using Ledict.ConditionExtract.Model;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ledict.ConditionExtract.BLL
{
    public class ConvertModeBLL
    {
        ConvertModeDAL cmdal = new ConvertModeDAL();

        /// <summary>
        /// 增加ConvertMode表数据
        /// </summary>
        public bool ConvertModeAdd(ConvertMode model)
        {
            return cmdal.ConvertModeAdd(model);
        }

        /// <summary>
        /// 删除ConvertMode表数据
        /// </summary>
        public bool ConvertModeDelete(string cmId)
        {
            return cmdal.ConvertModeDelete(cmId);
        }
        /// <summary>
        /// 删除ConvertMode表数据
        /// </summary>
        public bool ConvertModeDeleteConfig(string cmId)
        {
            return cmdal.ConvertModeDeleteConfig(cmId);
        }

        /// <summary>
        /// 修改ReturnMode表数据
        /// </summary>
        public bool ConvertModeUpdate(ConvertMode model)
        {
            return cmdal.ConvertModeUpdate(model);
        }

        /// <summary>
        /// 获取ReturnMode表数据
        /// </summary>
        public DataTable GetConvertModeData(string cmId)
        {
            return cmdal.GetConvertModeData(cmId);
        }

        /// <summary>
        /// 增加ConvertMode表函数数据
        /// </summary>
        public bool ConvertModeAddHanShu(ConvertMode model)
        {
            return cmdal.ConvertModeAddHanShu(model);
        }

        /// <summary>
        /// 修改ConvertMode表函数数据
        /// </summary>
        public bool ConvertModeHanShuUpdate(ConvertMode model)
        {
            return cmdal.ConvertModeHanShuUpdate(model);
        }

        /// 增加ConvertMode表函数数据
        /// </summary>
        public bool ConvertModeAddHanShuConfig(ConvertMode model)
        {
            return cmdal.ConvertModeAddHanShuConfig(model);
        }

        /// <summary>
        /// 获取ConvertMode表数据
        /// </summary>
        public DataTable GetConvertModeData(string xmlPath, string caseType)
        {
            return cmdal.GetConvertModeData(xmlPath, caseType);
        }

        /// <summary>
        /// 增加ConvertMode表数据
        /// </summary>
        public bool ConvertModeAddZDConfig(ConvertMode model)
        {
            return cmdal.ConvertModeAddZDConfig(model);
        }

        /// <summary>
        /// 获取ConvertMode表数据
        /// </summary>
        public DataTable GetConvertModeHanShuData(string xmlPath, string caseType)
        {
            return cmdal.GetConvertModeHanShuData(xmlPath, caseType);
        }

        /// <summary>
        /// 获取ConvertMode表数据
        /// </summary>
        public DataTable GetConvertMode(string xmlPath, string caseType)
        {
            return cmdal.GetConvertMode(xmlPath, caseType);
        }

        /// <summary>
        /// 获取ConvertMode表数据
        /// </summary>
        public DataTable GetConvertModeDataNew(string cmId)
        {
            return cmdal.GetConvertModeDataNew(cmId);
        }

        /// <summary>
        /// 获取ConvertMode表数据
        /// </summary>
        public DataTable GetConvertModeHanShuData(string cmId)
        {
            return cmdal.GetConvertModeHanShuData(cmId);
        }
        }
}
